<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>

<html >
<head>
	<title></title>
	<%@ include file="/common/meta.jsp" %>
	<link type="text/css" rel="stylesheet" href="${ctx}/frame/images/style.css" />
	<link type="text/css" rel="stylesheet" href="${ctx}/css/cupertino/jquery-ui-1.8.13.custom.css" />
	<script type="text/javascript" src="${ctx}/js/weboffice/main.js"></script>
	<script src="${ctx}/js/jquery.js" type="text/javascript"></script>
	<script src="${ctx}/css/cupertino/jquery-ui-1.8.13.custom.min.js" type="text/javascript"></script>
	<script src="${ctx}/css/cupertino/jquery.ui.datepicker-zh-CN.js" type="text/javascript"></script>
	<script src="${ctx}/js/tree/MzTreeView11.js" type="text/javascript"></script>
	<script src="${ctx}/js/DlgCtrl.js" type="text/javascript"></script>
	<script src="${ctx}/js/function.js" type="text/javascript"></script>
<style type="text/css">
<!--
body {
	background-color:white;
    margin:5px;
    overflow:auto;
}
-->
</style>
<SCRIPT LANGUAGE=javascript FOR=WebOffice1 EVENT=NotifyCtrlReady>
/****************************************************
*
*	在装载完Weboffice(执行<object>...</object>)
*	控件后执行 "WebOffice1_NotifyCtrlReady"方法
*
****************************************************/
	WebOffice1_NotifyCtrlReady();
</SCRIPT>
<script type="text/javascript">
	$(document).ready(function(){
		initButton();
		});

	function WebOffice1_NotifyCtrlReady(){
		var docType = "doc";
		var docId = "${project.id}";
		
		var office = $("#WebOffice1").get(0);	
			
		//新建空文档		
		if(docId==""){
			office.LoadOriginalFile("",docType);
		}
		else{
			//载入文档
			var fileId = "${project.prjFile[0].id}";
			var url="../project/prj-file!getFile.action?id="+fileId;
			office.LoadOriginalFile(url,docType);
			}
		
		//隐藏菜单栏
		notMenu();
		}


	//设置按钮样式
	 function initButton(){
		$("input:button,input:submit").button();
		 };

	

	
</script>

</head>

<body>
<form id="inputForm" action="assessment!input.action" method="post" onsubmit="window.location.href='assessment!input.action?id=${id}';return false;">
<input type="hidden" name="id" value="${id}"/>
	<div id="ptop">
	<div id="tleft"></div>
	<div id="ticon"><img src="../frame/images/icon_list.gif"/>&nbsp;</div>
	<div id="ttitle">查看项目</div>
	<div id="tright"></div>
	</div>
	<div id="pmain">
				<table class="fm"  cellPadding="0" cellSpacing="0" style="width:85%">	
			<thead>
				<th colspan="7" height="25" >
				<div class="fmedit"></div>
				<div style="width:60px;">查看项目</div>
				<div class="fmdot"></div>				
				</th>
			</thead>	
			<tr>
				<td class="fmtt" >项目名称</td>
				<td class="fmve"><div></div></td>
				<td class="fmctrl" width="600" colspan="5" align="left">&nbsp;&nbsp;&nbsp;&nbsp;
				${project.prjName}
				 </td>
			</tr>
			
			<tr>
				<td colspan="7" class="fmhor"></td>
			</tr>
			<tr>
				<td class="fmtt">简称</td>
				<td class="fmve"><div></div></td>
				<td class="fmctrl" colspan="5" align="left">&nbsp;&nbsp;&nbsp;&nbsp;
				${project.shortName}
				 </td>
			</tr>
			
			<tr>
				<td colspan="7" class="fmhor"></td>
			</tr>
			
			<tr>
				<td class="fmtt">申请人</td>
				<td class="fmve"><div></div></td>
				<td class="fmctrl" width="40%">
				
				
					${project.user.name}			
					
				 </td>
				<td class="fmve"><div></div></td>
				<td class="fmtt" >所在单位</td>
				<td class="fmve"><div></div></td>
				<td class="fmctrl" width="40%">
				
				${project.organization.name}
				
				</td>
			</tr>
			
			<tr>
				<td colspan="7" class="fmhor"></td>
			</tr>
			<tr>
				<td class="fmtt">申请时间</td>
				<td class="fmve"><div></div></td>
				<td class="fmctrl">
					<s:date name="project.applyDate" format="yyyy-MM-dd"/>
				</td>
				<td class="fmve"><div></div></td>
				<td class="fmtt">项目类型</td>
				<td class="fmve"><div></div></td>
				<td class="fmctrl">
				
					${project.sysClass.name}
				</td>
			</tr>
			
			<tr>
				<td colspan="7" class="fmhor"></td>
			</tr>
			<tr>
				<td class="fmtt">备注</td>
				<td class="fmve"><div></div></td>
				<td class="fmctrl" colspan="5" align="left">

				${project.note }
	
				 </td>
			</tr>
			<tr>
				<td colspan="7" class="fmhor"></td>
			</tr>
			
			<tr>
				<td class="fmtt">项目概要说明</td>
				<td class="fmve"><div></div></td>
				<td class="fmctrl" colspan="5" align="left">
				${project.summarize }
				 </td>
			</tr>
			<tr>
				<td colspan="7" class="fmhor"></td>
			</tr>
						
			<tr>
				<td class="fmtt" style="width:100%" colspan="7" ><strong> 申 报 内 容  </strong></td>
			</tr>
			<tr>
				<td colspan="7" class="fmhor"></td>
			</tr>		
			<tr>
				<td colspan="7"  class="fmctrl"><script type="text/javascript" src="${ctx}/js/weboffice/LoadWebOffice.js"></script></td>
			</tr>

			<tr>
				<td  colspan="7" class="fmbtm" >
					<input class="button" type="submit" value=" 申核 " />&nbsp;
					<input class="button" type="button" value="返 回 " onclick="history.back()"/>
				</td>
			</tr>
		</table>
	</div>
		</form>
	
</body>
</html>
